package com.my.mall.manage.order.dao.orderInfo;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.my.mall.manage.order.vo.orderInfo.OrderInfoManageVo;

public interface OrderInfoManageDao {

	List<OrderInfoManageVo> selectOrderInfoList(@Param("iDisplayStart") int iDisplayStart,
			@Param("iDisplayLength") int iDisplayLength);

	int selectOrderInfoCount();

	int update(@Param("id") int id, @Param("totalPrices") Double totalPrices, @Param("freight") Double freight,
			@Param("orderStatus") int orderStatus, @Param("deliveryDate") String deliveryDate,
			@Param("deliveryTime") String deliveryTime);

	int save(@Param("totalPrices") Double totalPrices, @Param("freight") Double freight,
			@Param("orderStatus") int orderStatus);

	OrderInfoManageVo getOrderInfo(int id);

	OrderInfoManageVo getOrderInfoByOrderNumber(@Param("orderNumber") String orderNumber);

	int del(int id);

	List<OrderInfoManageVo> selectOrderInfoListByOrderStatus(@Param("orderStatus") int orderStatus,
			@Param("iDisplayStart") int iDisplayStart, @Param("iDisplayLength") int iDisplayLength);

	int selectOrderInfoCountByOrderStatus(@Param("orderStatus") int orderStatus);

	List<OrderInfoManageVo> selectOrderRefundList(@Param("iDisplayStart") int iDisplayStart,
			@Param("iDisplayLength") int iDisplayLength);

	int selectOrderRefundCount();

	List<OrderInfoManageVo> selectOrderRefundListByIsRefund(@Param("isRefund") int isRefund,
			@Param("iDisplayStart") int iDisplayStart, @Param("iDisplayLength") int iDisplayLength);

	int selectOrderRefundCountByIsRefund(@Param("isRefund") int isRefund);

	int updateByRefund(@Param("id") int id, @Param("isRefund") int isRefund,
			@Param("refundMessage") String refundMessage);

}